function [a]=gaRealDecoder(up,down,nbit,x)
s=bin2dec(x);
a=(up-down)/(2^nbit-1)*s+down;